# Contributor: Jordan Christiansen <xordspar0@gmail.com>
# Maintainer: Jordan Christiansen <xordspar0@gmail.com>
pkgname=crispy-doom
pkgver=6.0
pkgrel=0
pkgdesc="Limit-removing enhanced-resolution Doom source port based on Chocolate Doom"
url="https://github.com/fabiangreffrath/crispy-doom"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake sdl2-dev sdl2_mixer-dev sdl2_net-dev libsamplerate-dev libpng-dev"
subpackages="$pkgname-doc"
options="!check" # upstream has no tests
source="https://github.com/fabiangreffrath/crispy-doom/archive/refs/tags/crispy-doom-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
44ab9ffea1febe7eaab0c28d5dd178df821c200354aa9aeecd0b84dbe98419a037416f8d8e6176611dbd1a2dba8ec050d9e7267c61dcf8640c08c422765b270f  crispy-doom-6.0.tar.gz
"
